package com.coderlin.dao.user;

import com.coderlin.pojo.Role;
import com.coderlin.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/03/11 22:30 <br>
 * @see com.coderlin.dao.user <br>
 */
public interface UserDao {

    /**获取要登录的用户
     * */
    public User getLoginUser(Connection connection,String userCode) throws SQLException;

    /**当前用户修改密码
     * */
    public int updatePwd(Connection connection,int id,String userPassword) throws SQLException;

    /**获取查询总行数
     * */
    public int getUserCount(Connection connection,String username,int userRole)throws SQLException;

    /**获取查询的用户列表
     * */
    public List<User> getUserList(Connection connection, String userName, int userRole, int currentPageNo, int pageSize)throws SQLException;


}
